import React, {Component} from 'react'
import {connect} from 'dva'
import {Link} from 'dva/router';
import styles from './index.scss';

class Home extends Component {
  render() {
    return (
      <div className={styles.normal}>
        <p>当前用户首页</p>
        <Link to="/user/login">去用户登陆页</Link><br/>
        <Link to="/sys/login">系统登陆页 /syslogin</Link>
        <hr/>
        <h1 className={styles.title}>Yay! Welcome to dva!</h1>
        <div className={styles.welcome}/>
        <ul className={styles.list}>
          <li>To get started, edit <code>src/index.js</code> and save to reload.</li>
          <li><a href="https://github.com/dvajs/dva-docs/blob/master/v1/en-us/getting-started.md">Getting Started</a>
          </li>
        </ul>
      </div>
    )
  }
}

Home.propTypes = {}

export default connect()(Home)
